import { Controller, Post, Body } from '@nestjs/common';
import { ProjectCreator } from './project.provider';
import { Project } from './project.entity';

@Controller('/projects')
export class ProjectApplyReceiver {
  @Post()
  receive(
    @Body('name') name: string,
    @Body('description') description: string,
  ): string {
    const project: Project = new ProjectCreator().create(name, description);
    console.log(project);
    return 'ok';
  }
}
